package com.dream.dynamic_datasource.constract;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: Luo
 * @create: 2020-07-14 15:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class JsonResult {
    private Integer code;
    private Object data;
    private String msg;
    public JsonResult(Object data){
        this.code=ResponseCode.SUCCESS;
        this.data=data;
    }
    public JsonResult(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
